﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WpfAGVSystem.Migrations
{
    public partial class init5 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "HYGetHeightBig",
                table: "Machine_Entity");

            migrationBuilder.DropColumn(
                name: "HYGetHeightSmal",
                table: "Machine_Entity");

            migrationBuilder.RenameColumn(
                name: "HYPutHeightSaml",
                table: "Machine_Entity",
                newName: "HYPutHeight");

            migrationBuilder.RenameColumn(
                name: "HYPutHeightBig",
                table: "Machine_Entity",
                newName: "HYGetHeight");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "HYPutHeight",
                table: "Machine_Entity",
                newName: "HYPutHeightSaml");

            migrationBuilder.RenameColumn(
                name: "HYGetHeight",
                table: "Machine_Entity",
                newName: "HYPutHeightBig");

            migrationBuilder.AddColumn<int>(
                name: "HYGetHeightBig",
                table: "Machine_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "HYGetHeightSmal",
                table: "Machine_Entity",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }
    }
}
